

/*
This is a UI file (.ui.qml) that is intended to be edited in Qt Design Studio only.
It is supposed to be strictly declarative and only uses a subset of QML. If you edit
this file manually, you might introduce QML code that is not supported by Qt Design Studio.
Check out https://doc.qt.io/qtcreator/creator-quick-ui-forms.html for details on .ui.qml files.
*/
import QtQuick 2.15
import QtQuick.Controls 2.15

Rectangle {
    property string cPlaceholderTextValue: "请输入"
    property string cInputLabelText: "标签"
    property int cInputlabelWidth: 60

    width: 300
    height: 60
    color: "#f8f5f5"
    radius: 6
    anchors.margins: 5

    Label {
        id: inputlabel
        anchors.left: parent.left
        anchors.top: parent.top
        anchors.bottom: parent.bottom
        width: cInputlabelWidth
        height: parent.height
        text: qsTr(cInputLabelText + ": ")
        horizontalAlignment: Text.AlignHCenter
        verticalAlignment: Text.AlignVCenter
    }

    TextField {
        id: ctextFiled
        anchors.left: inputlabel.right
        anchors.leftMargin: 5
        anchors.right: parent.right
        anchors.top: parent.top
        anchors.bottom: parent.bottom
        placeholderText: cPlaceholderTextValue
    }


}
